package com.starblink.android.basic.base.activity

import android.os.Bundle
import androidx.viewbinding.ViewBinding
import com.starblink.android.basic.base.BaseViewModel
import com.starblink.basic.util.NetWorkUtil
import com.starblink.basic.util.log.YYLogUtils

abstract class BaseTVMActivity<T : ViewBinding, VM : BaseViewModel> : AbsVMActivity<VM>() {

    protected lateinit var viewBinding: T

    abstract fun initViewBinding(): T

    override fun onCreate(savedInstanceState: Bundle?) {
        viewBinding = initViewBinding()
        super.onCreate(savedInstanceState)
        setContentView(viewBinding.root)

    }

    override fun onNetworkConnectionChanged(
        isConnected: Boolean,
        networkType: NetWorkUtil.NetworkType?
    ) {
        YYLogUtils.i("")
    }

}